import { createContainer } from 'unstated-next';
import useInfoStore from './useInfoStore';
import usePermissionStore from './usePermissionStore';

function useStore() {
  const user = useInfoStore();
  const permissonStore = usePermissionStore();
  return {
    user,
    permissonStore,
  };
}

export default createContainer(useStore);
